package travel.caval._20091127.hotelBooking;

public class HotelBookingServiceProxy implements travel.caval._20091127.hotelBooking.HotelBookingService_PortType {
  private String _endpoint = null;
  private travel.caval._20091127.hotelBooking.HotelBookingService_PortType hotelBookingService_PortType = null;
  
  public HotelBookingServiceProxy() {
    _initHotelBookingServiceProxy();
  }
  
  public HotelBookingServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initHotelBookingServiceProxy();
  }
  
  private void _initHotelBookingServiceProxy() {
    try {
      hotelBookingService_PortType = (new travel.caval._20091127.hotelBooking.HotelBookingService_ServiceLocator()).getHotelBookingServiceImplPort();
      if (hotelBookingService_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)hotelBookingService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)hotelBookingService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (hotelBookingService_PortType != null)
      ((javax.xml.rpc.Stub)hotelBookingService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public travel.caval._20091127.hotelBooking.HotelBookingService_PortType getHotelBookingService_PortType() {
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType;
  }
  
  public travel.caval._20091127.hotelBooking.CavalHotelBookingNotificationRS notifyHotelBookings(travel.caval._20091127.hotelBooking.CavalHotelBookingNotificationRQ rq) throws java.rmi.RemoteException, travel.caval._20091127.hotelBooking.Exception{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.notifyHotelBookings(rq);
  }
  
  public travel.caval._20091127.hotelBooking.CavalHotelAvailabilityRS getAvailableHotels(travel.caval._20091127.hotelBooking.CavalHotelAvailabilityRQ rq) throws java.rmi.RemoteException, travel.caval._20091127.hotelBooking.Exception{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.getAvailableHotels(rq);
  }
  
  public travel.caval._20091127.hotelBooking.CavalGetOffersListRS getOffersList(travel.caval._20091127.hotelBooking.CavalGetOffersListRQ rq) throws java.rmi.RemoteException, travel.caval._20091127.hotelBooking.Exception{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.getOffersList(rq);
  }
  
  public travel.caval._20091127.hotelBooking.CavalHotelBookingConfirmRS confirmHotelBooking(travel.caval._20091127.hotelBooking.CavalHotelBookingConfirmRQ rq) throws java.rmi.RemoteException{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.confirmHotelBooking(rq);
  }
  
  public travel.caval._20091127.hotelBooking.CavalHotelBookingValuationRS getDetailedValuation(travel.caval._20091127.hotelBooking.CavalHotelBookingValuationRQ rq) throws java.rmi.RemoteException, travel.caval._20091127.hotelBooking.Exception{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.getDetailedValuation(rq);
  }
  
  public travel.caval._20091127.hotelBooking.CavalGetListOfBoardTypesRS getListOfBoardTypes(travel.caval._20091127.hotelBooking.CavalGetListOfBoardTypesRQ rq) throws java.rmi.RemoteException, travel.caval._20091127.hotelBooking.Exception{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.getListOfBoardTypes(rq);
  }
  
  public travel.caval._20091127.hotelBooking.CavalGetRoomingListRS getRoomingList(travel.caval._20091127.hotelBooking.CavalGetRoomingListRQ rq) throws java.rmi.RemoteException, travel.caval._20091127.hotelBooking.Exception{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.getRoomingList(rq);
  }
  
  public travel.caval._20091127.hotelBooking.CavalGetEstablishmentDataSheetsRS getEstablishmentDataSheets(travel.caval._20091127.hotelBooking.CavalGetEstablishmentDataSheetsRQ rq) throws java.rmi.RemoteException{
    if (hotelBookingService_PortType == null)
      _initHotelBookingServiceProxy();
    return hotelBookingService_PortType.getEstablishmentDataSheets(rq);
  }
  
  
}